﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace XW.Web.Framework
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserInfo
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public long userId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string username { get; set; }


        /// <summary>
        /// 自定义用户名
        /// </summary> 
        public string cususername { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string realName { get; set; }
        /// <summary>
        /// 所属组织Id 
        /// </summary>
        public long orgId { get; set; }
        /// <summary>
        /// 组织编号
        /// </summary>
        public string orgCode { get; set; }
        /// <summary>
        ///  U9组织ID
        /// </summary> 
        public string u9orgId { get; set; }
        /// <summary>
        ///  组织名
        /// </summary> 
        public string orgName{ get; set; }
        /// <summary>
        /// 组织简称
        /// </summary> 
        public string orgShortName { get; set; }
        /// <summary>
        /// 有权限的组织
        /// </summary> 
        public List<object> Orgs { get; set; }
        /// <summary>
        /// 部门Id
        /// </summary>
        public long depId { get; set; }
        /// <summary>
        /// 部门编码
        /// </summary> 
        public string depCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary> 
        public string depName { get; set; }

        /// <summary>
        /// 岗位Id
        /// </summary> 
        public long posId { get; set; }

        /// <summary>
        /// 岗位编号
        /// </summary> 
        public string posCode { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary> 
        public string posName { get; set; }

        /// <summary>
        /// 权限列表
        /// </summary>
        public List<string> permissions { get; set; }
        /// <summary>
        /// 是否需要修改密码
        /// </summary>
        public int need_change_pwd { get; set; }
        /// <summary>
        /// 是否超级管理员
        /// </summary>
        public bool IsSup { get; set; }

        /// <summary>
        /// Gets or sets the staff identifier.
        /// </summary>
        /// <value>
        /// The staff identifier.
        /// </value>
        public int staff_id { get; set; }
        /// <summary>
        /// 密码
        /// </summary> 
        /// </value>
        public string u9pwd { get; set; }

        /// <summary>
        ///  u9 账套
        /// </summary> 
        public string enterpriseId { get; set; }

        /// <summary>
        /// 是否可远程
        /// </summary>
        public bool can_remote { get; set; }
        /// <summary>
        /// 远程结束日期
        /// </summary> 
        public DateTime remote_end_date { get; set; }
        /// <summary>
        /// 远程授权码
        /// </summary> 
        public string remote_code { get; set; }
    }
}
